package cn.yedong.org.service;

import cn.yedong.org.domain.Shop;
import cn.yedong.basic.service.IBaseService;
import cn.yedong.org.domain.ShopAuditLog;

import javax.mail.MessagingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yedong
 * @since 2023-02-06
 */
public interface IShopService extends IBaseService<Shop> {
    /**
     * 店铺入驻
     * @param shop
     */
    void register(Shop shop);

    /**
     * 审核通过
     * @param shopAuditLog
     */
    void auditPass(ShopAuditLog shopAuditLog) throws MessagingException;

    /**
     * 审核驳回
     * @param shopAuditLog
     */
    void auditReject(ShopAuditLog shopAuditLog);

    /**
     * 店铺激活
     * @param shopId
     */
    void activate(Long shopId);
}
